package main // pinkey v2.1_2022.11.3 - Copyright by Binet Workshop, Wol.

import (
	"bww/j8/puid"
	"flag"
	"fmt"
)

func options(l, s, u bool) int {
	t := 0

	if l { t |= 1 }
	if s { t |= 2 }
	if u { t |= 4 }

	return t
}

func main() {
	n := flag.Int("n", 6, "Password length.")
	l := flag.Bool("l", false, "Whether to add lowercase letters.")
	s := flag.Bool("s", false, "Whether to add special characters.")
	u := flag.Bool("u", false, "Whether to add uppercase letters.")
	flag.Parse()

	fmt.Println(puid.Generate(*n, options(*l, *s, *u), flag.Args()))
}